package wh.coach._overload;

/**
 * @author hangwen
 * @date 2023/6/21
 */
public class Main {
    public static void main(String[] args) {

        OverLoad overLoad = new OverLoad();

        Object o = new Object();
        String s = "";

        overLoad.fun1(o);
        overLoad.fun1(s);
        //与多态无关，调用哪个func1取决于声明s的变量是什么
        overLoad.fun1((Object) s);

        overLoad.fun1(o, o);
        overLoad.fun1(new Object[]{o, o});
    }
}
